package com.example.service.impl;

import com.example.dao.ManagerDao;
import com.example.pojo.Manager;
import com.example.service.ManagerService;

public class ManagerServiceImpl extends BaseImpl<ManagerDao> implements ManagerService {

    @Override
    public int add(Manager role) {
        return mapper.add(role);
    }

    @Override
    public void delete(int id) {
        mapper.deleteById(id);
    }

    @Override
    public void update(Manager role) {
        mapper.update(role);
    }

    @Override
    public Manager find(int id) {
        return mapper.findById(id);
    }
}
